package com.wocao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wocao.entity.ReqBody;
import com.wocao.entity.ZyBuilding;
import com.wocao.entity.ZyUnit;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 单元  服务类
 *
 * @since 2023-12-02
 */
public interface ZyUnitService extends IService<ZyUnit> {

    //查询所有
    Page<ZyUnit> selectUnitAll(Page page, ReqBody reqBody);

    //导出
    void derive(HttpServletResponse response, String[] unitIds) throws IOException;

    //添加
    void unitAdd(ZyUnit zyUnit);
    //修改
    void unitEdit(ZyUnit zyUnit);

    List<ZyUnit> getUnitsByBuildingId(String buildingId);

}
